#! /bin/csh
# This script is to execute a given program by enumerating the program's 
# parameters and the environment variables needed by the program.
# The program must reside within the same directory with this script
#
# The program name, say pn, is given as the parameter of this script
# e.g. ./exec pn
#
if ($#argv < 2) then
	echo "Must specify program name and output file name!"
	exit 1
endif
foreach n (128 256 384 512 640 768 896 1024 1152 1280 1408 1536 1664 1792 1920 2048)
	./$1 $n plot >> $2
end

